<template>
	<view>
		<image class="fullscreen-image" src="https://pic.imgdb.cn/item/672c77bcd29ded1a8cf43059.png"></image>
	</view>
	<view class="section white">
		<view class="item" @click="gopeifangyuanliao">
			<view class="icon">
				<image src="https://zjdemo.xuande.work:8889/photo/ab0456849a834d6a9d48cc8bbd5faaec.png"
					class="icon-img"></image>
			</view>
			<view class="text">故宫</view>
		</view>
		<view class="item" @click="gopeifangyuanliao">
			<view class="icon">
				<image src="https://zjdemo.xuande.work:8889/photo/a4c7b4ddf0b64b9a94bd9c7897a8cebc.png"
					class="icon-img"></image>
			</view>
			<view class="text">三星堆</view>
		</view>

		<view class="item" @click="goZhiKa">
			<view class="icon">
				<image src="https://zjdemo.xuande.work:8889/photo/e942d056d03c436382c1c9c0162af70c.png"
					class="icon-img"></image>
			</view>
			<view class="text">莫高窟</view>
		</view>
		<view class="item">
			<view class="icon">
				<image src="https://zjdemo.xuande.work:8889/photo/1ad2d844e1224df4bbeffef9c2fa2692.png" class="icon-img"
					@click="goYaoqingyouyli"></image>
			</view>
			<view class="text">小西天</view>
		</view>

	</view>
	<view style="margin-top: 5px;">
		<fui-panel :panelData="panelData" :marginTop="24" :size="32"></fui-panel>
	</view>
</template>

<script>
	import piaoyiSwiper from '@/components/piaoyi-swiper/piaoyi-swiper.vue';
	import {
		url
	} from '@/utils/request.js';
	import {
		jerrybanner
	} from '@/components/jerry-banner/jerry-banner.vue'
	import {
		onLoad,
		onUnload
	} from '@dcloudio/uni-app';
	export default {
		components: {
			piaoyiSwiper,
		},
		data() {
			return {
				panelData: {
					list: [{
							src: 'https://m.firstui.cn/static/images/common/img_logo.png',
							title: 'First UI组件库',
							desc: 'First UI组件库，是基于uni-app开发的一款轻量、全面可靠的跨平台移动端组件库。',
							source: '￥18',
							time: '2021-08-09'
						}, {
							src: 'https://m.firstui.cn/static/images/common/img_logo.png',
							title: 'First UI跨平台UI组件库',
							desc: 'First UI组件库，是基于uni-app开发的一款轻量、全面可靠的跨平台移动端组件库。',
							source: '￥18',
							time: '2021-08-09',

						},
						{
							src: 'https://m.firstui.cn/static/images/common/img_logo.png',
							title: 'First UI跨平台UI组件库',
							desc: 'First UI组件库，是基于uni-app开发的一款轻量、全面可靠的跨平台移动端组件库。',
							source: '￥18',
							time: '2021-08-09',

						},
						{
							src: 'https://m.firstui.cn/static/images/common/img_logo.png',
							title: 'First UI跨平台UI组件库',
							desc: 'First UI组件库，是基于uni-app开发的一款轻量、全面可靠的跨平台移动端组件库。',
							source: '￥18',
							time: '2021-08-09',

						},
						{
							src: 'https://m.firstui.cn/static/images/common/img_logo.png',
							title: 'First UI跨平台UI组件库',
							desc: 'First UI组件库，是基于uni-app开发的一款轻量、全面可靠的跨平台移动端组件库。',
							source: '￥18',
							time: '2021-08-09',

						},
						{
							src: 'https://m.firstui.cn/static/images/common/img_logo.png',
							title: 'First UI跨平台UI组件库',
							desc: 'First UI组件库，是基于uni-app开发的一款轻量、全面可靠的跨平台移动端组件库。',
							source: '￥18',
							time: '2021-08-09',

						}
					]
				},

			}
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.fullscreen-image {
		width: 100vw;
		height: 200px;
		object-fit: cover;
		/* 确保图片填满屏幕且保持比例 */
	}

	.header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding-bottom: 10rpx;
	}

	.title-large {
		font-size: 36rpx;
		font-weight: bold;
		padding: 5px;
		color: #4a3f36;
	}

	.titles {
		padding: 8px;
	}

	.date {
		font-size: 26rpx;
		color: #7a6b60;
	}

	.section {
		padding: 10px;
		// margin-bottom: 10px;
	}

	.yellow {
		background-color: white;
		display: flex;
		justify-content: space-between;
	}

	.title {
		font-size: 18px;
		font-weight: bold;
		margin-bottom: 10px;
	}

	.description {
		font-size: 14px;
		color: #666;
	}

	.white {
		background-color: wheat;
		display: flex;
		justify-content: space-between;
		padding: 10px 0;
		margin: -2px 4px;
		border-radius: 12px;
	}

	.item {
		flex: 1;
		text-align: center;
		margin: 0 5px;
	}

	.item.large {
		flex: 2;
	}

	.item.small {
		flex: 1;
	}

	.icon {
		margin-bottom: 5px;
	}

	.icon-img {
		width: 44px;
		height: 44px;
	}

	.icon-imgs {
		width: 43px;
		height: 43px;
	}

	.text {
		font-size: 12px;
	}
</style>